package com.yanqu.road.entity.voucher;

/**
 * 代金券类型
 */
public enum eVoucherType {

    MeiTuan(1, "美团无门槛代金券"),
    ;

    private int value;
    private String name;

    eVoucherType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static eVoucherType valueOf(int value) {
        for (eVoucherType type : eVoucherType.values()) {
            if (type.getValue() == value) {
                return type;
            }
        }
        return null;
    }

}
